/**
 * Created by Administrator on 2016/2/21 0021.
 */
define(function(require) {

    var $ = require('jquery');
    require('bootstrap');
// sidebar toggle

    var oli = $('.sidebar-menu .sub-menu');
    var oul = $('.sidebar-menu .sub');
    for (var i = 0; i < oli.length; i++) {
        oli[i].id = i;
        $(oli[i]).on('click', function () {
            $(oul[this.id]).slideToggle(0);
        })
    }

})